'''
#yuanzhu
tup = (123, 'java')
tup1 = ('c++', 'python')
print(tup+tup1)
#jihe
student = {"lisi", "wang", 'lisi'}
print(student)
a = set('asdsfq')
b = set('xcasdz')
print(a-b)
print(a | b)
print(a & b)
print(a ^ b)
#zidian
dic = dict()
dic['name'] = "zhangsan"
dic['age'] = 20
print(dic)
dic2 = {'name':'lisi',"age":18,"height":"180cm"}
print(dic2['name'])
print(dic2.keys())
print(dic2.values())
dic3 = dict([('python',1),('java',2)])
print(dic3)
print(dic3.get("c++",'python不存在'))
for i in dic3:
    print(i,dic3[i])
'''

s = input('请输入一句话：')
d = {}
for i in s:
    temp = d.get(i, 0)
    d[i] = temp+1
max1 = d[s[0]]
m = s[0]
for j in s:
    if max1 < d[j]:
        max1 = d[j]
        m = j
print('这句话重复出现次数最多的是%c,次数为%d' % (m, d[m]))



